An ignition switch is a device used to start and stop an engine or power source. It works by providing electrical current to the engine's starter motor, which then turns over the engine until it starts running on its own fuel supply. The ignition switch also controls the flow of electricity to various components in the vehicle such as lights, radio, and other accessories that require power to operate. It is typically located near the steering wheel or on the dashboard for easy access by the driver.